package com.wy.service.wy;

import com.wy.bean.RepairBean;
import com.wy.model.sys.RepairEntity;
import com.wy.model.sys.RepairLog;

import java.util.List;

public interface RepairService {

    /**
     * 获取报修信息
     * @param pageSize
     * @param start
     * @param content
     * @param status
     * @param startTime
     * @param finishTime
     * @return
     */
   List<RepairBean> repairList(int pageSize, int start, String type, String content, String status, String keys, String startTime,
                               String finishTime, Integer uid, String soon, List<String> rids,Integer ext1);
    /**
     * 获取报修列表的总量
     *
     * @return
     */
    Integer repairSize(int pageSize,int start,String type,String content,String status,String keys,String startTime,
                        String finishTime,Integer uid,String soon,List<String> rids,Integer ext1);

    /**
     * 新增报修
     * @param repairEntity
     */
    void insertRepair(RepairEntity repairEntity);

    /**
     * 修改报修信息
     * @param repairEntity
     */
    void updateRepair(RepairEntity repairEntity);

    void delRepair(List<String> repairIds);

    List<RepairLog> getRepairLogList(Integer repairId);

    boolean assignRepairBill(String loginName,Integer repairId,Integer userId);
    boolean reassignRepairBill(Integer repairId);
    boolean dealRepairBill(Integer repairId,Integer userId,String remark);

}
